//
//  universal.m
//  Christmas box
//
//  Created by GL on 08-11-23.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "universal.h"


@implementation universal


- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        // Initialization code
    }
    return self;
}
//得到图片信息
+(UIImage *)getImageName:(NSString *)picname 
{
	NSBundle *mainBundle = [NSBundle mainBundle];
	NSString *imagePath = [mainBundle pathForResource:picname ofType:@"png"];
	return [UIImage imageWithContentsOfFile:imagePath];
}

- (void)dealloc 
{
    [super dealloc];
}


@end
